package cn.daichi.elasticsearchdemo.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

public interface SearchService {
    IPage search(Page page, String keyword);

    int initEsData();

    void createOrUpdateIndex(Long postId);

    void removeIndex(Long postId);
}
